﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="signup.aspx.cs" Inherits="ComedyLiveOnTheNet.SignUp" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <h2>Comedian Sign Up</h2>
    <table>
        <tr>
            <td>
                <asp:Label ID="lblFirstName" runat="server" Text="First Name: "></asp:Label></td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server" Columns="30"></asp:TextBox>
                <asp:RequiredFieldValidator ID="valFirstname" runat="server" ControlToValidate="txtFirstName"
                    ErrorMessage=" <-- Please enter your first name"></asp:RequiredFieldValidator>
                </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblSurname" runat="server" Text="Surname: "></asp:Label></td>
            <td>
                <asp:TextBox ID="txtSurname" runat="server" Columns="30"></asp:TextBox>
                <asp:RequiredFieldValidator ID="valSurname" runat="server" ControlToValidate="txtSurname"
                    ErrorMessage=" <-- Please enter your surname"></asp:RequiredFieldValidator>
                </td>

        </tr>
        <tr>
            <td>
                <asp:Label ID="lblGender" runat="server" Text="Gender: "></asp:Label></td>
            <td>
                <asp:DropDownList ID="drpGender" runat="server" Width="100px">
                    <asp:ListItem Text="Male" Value="m"></asp:ListItem>
                    <asp:ListItem Text="Female" Value="f"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblUsername" runat="server" Text="Username: "></asp:Label></td>
            <td>
                <asp:TextBox ID="txtUsername" runat="server" Columns="30"></asp:TextBox>
                <asp:RequiredFieldValidator ID="valUsername" runat="server" ControlToValidate="txtUsername"
                    ErrorMessage=" <-- Please enter a username"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblPassword" runat="server" Text="Password: "></asp:Label></td>
            <td>
                <asp:TextBox ID="txtPassword" TextMode="Password" runat="server"  Columns="30"></asp:TextBox>
                <asp:RequiredFieldValidator ID="valPassword" runat="server" ControlToValidate="txtPassword"
                    ErrorMessage=" <-- Please enter a password"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lblReTypePassword" runat="server" Text="Re-type Password: "></asp:Label></td>
            <td>
                <asp:TextBox ID="txtReTypePassword" TextMode="Password" runat="server"  Columns="30"></asp:TextBox>
                <asp:RequiredFieldValidator ID="valReTypePassword" runat="server" ControlToValidate="txtReTypePassword"
                    ErrorMessage=" <-- Please re-type your password" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="ComparePasswords" runat="server" 
                    ErrorMessage="<-- The re-typed password does not match" 
                     ControlToValidate="txtReTypePassword" ControlToCompare="txtPassword"></asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td valign="top">
                <asp:Label ID="lblDescription" runat="server" Text="Description: "></asp:Label></td>
            <td>
                <asp:TextBox ID="txtDesription" TextMode="MultiLine" MaxLength="2000" Columns="50" Rows="10" runat="server"></asp:TextBox></td>
        </tr>
    </table>
    <br />
    <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="SubmitUserDetails" />
</asp:Content>

